package decorator.main;

/**
 * 销售管理系统
 * decorator.main
 * 这个是配料
 * 2018/8/9-9:31
 * 科达科技股份有限公司-版权所有
 * Created by wuqiang on 9:31.
 */
public class Mocha extends CondimentDecorator {

    Beverage beverage;

    public Mocha(Beverage beverage) {
        this.beverage = beverage;
    }

    public String getDescription() {
        return beverage.getDescription()+"，Mocha";
    }

    public double cost() {
        return .20+beverage.cost();
    }
}
